#!/bin/bash

for dir in `ls` ; do 
  if [ -e "${dir}/default.py" ] ; then 
    version=`awk -F '"' -- '/^__version__/ { print $2 }' "${dir}/default.py" `
    files=`find ${dir} |grep -v \\.svn |grep -v \\.py[oc]\$`
    zip ${dir}-${version}.zip ${files}
  fi; 
done
